<?php
class tx_ifpcurriculum2_scheduler extends tx_scheduler_Task {
	/**

	*
	* @return boolean	Returns true on successful execution, false on error
	*/
	public function execute(){
	
		$_GET['tx_ifpcurriculum2_c_admin']['controller'] = 'Task';
		$_SERVER['REQUEST_METHOD'] = 'GET';
		$_GET['tx_ifpcurriculum2_c_admin']['action'] = 'sende';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['IfpCurriculum2']['modules']['C_admin']['controllers']
= array(
    'Task' => array('actions' => array('sende'))
);
		//$bs = new Tx_Extbase_Core_Bootstrap();
$bootstrap = t3lib_div::makeInstance('Tx_Extbase_Core_Bootstrap');		
$configuration = array(
    		'extensionName' => 'IfpCurriculum2',
    		'pluginName' => 'C_admin',
			'switchableControllerActions' =>  array(
               'Task' => array(
                      'actions' => 'sende'
               )
        )
		);
		

		$bootstrap->run('', $configuration);
		return true;
	}

	/**
	 * This method is designed to return some additional information about the task,
	 * that may help to set it apart from other tasks from the same class
	 * This additional information is used - for example - in the Scheduler's BE module
	 * This method should be implemented in most task classes
	 *
	 * @return	string	Information to display
	 */
	public function getAdditionalInformation() {
		return '';
	}

}

?>